package com.eastmoney.emis.edda.domain.valueobject;

/**
 * @description: 操作状态 0：未处理，1：处理中，2：申请成功，3：手工作废
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.domain.valueobject
 * @author: 汪程程
 * @date: 2022/10/10 5:03 PM
 * @version: 1.0
 */
public enum EddaBindStatus {
    INIT("0"),
    PROCESSING("1"),
    SUCCESS("2"),
    INVALID("3")
    ;

    private String value;

    EddaBindStatus(String value) {
        this.value = value;
    }

    public String value() {
        return value;
    }

    public static EddaBindStatus parse(String value) {
        for (EddaBindStatus eddaBindStatus : EddaBindStatus.values()) {
            if (eddaBindStatus.value().equals(value)) {
                return eddaBindStatus;
            }
        }
        throw new IllegalArgumentException("未知 EddaBindStatus: " + value);
    }
}
